
#ifndef __KEY_H
#define __KEY_H

#ifdef __cplusplus
extern "C" {
#endif


#include "main.h"

typedef enum
{
	KEY_UP = 0,
	KEY_BEBOUNCE,
	KEY_WAIT_RELEASE,
}KEY_STATE;

extern KEY_STATE KeyState;
extern volatile uint8_t KeyFLag;

void Keyscan(void);


#ifdef __cplusplus
}
#endif

#endif
